import { S } from '../../s';
import { IPSSysViewLayoutPanel } from './ipssys-view-layout-panel';
import { PSSysPanelImpl } from './pssys-panel-impl';

export class PSSysViewLayoutPanelImpl
  extends PSSysPanelImpl
  implements IPSSysViewLayoutPanel
{
  get layoutBodyOnly(): boolean {
    return this.M.layoutBodyOnly;
  }

  get layoutPanel(): boolean {
    return this.M.layoutPanel;
  }

  get useDefaultLayout(): boolean {
    return this.M.useDefaultLayout;
  }

  get viewProxyMode(): boolean {
    return this.M.viewProxyMode != null ? this.M.viewProxyMode : false;
  }
  get cls(): string {
    return 'PSSysViewLayoutPanelImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._259 || cls == S._25a) return true;
    return super.instanceof(cls);
  }
}
